//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IEffectPool.h>
///	@path	~/src/graphics/
///	@date	2007/11/19
///	@desc	Effect pool interface.

#pragma once

#include "xeres.h"

#include "graphics/IDevice.h"
#include "graphics/IEffect.h"

namespace xeres {

	/*!
		\class	IEffectPool
		\brief	Effect pool interface.

		\sa IEffect, IShaderVariable
	*/
	class IEffectPool : public IObject
	{
	public:

		/// \name Constructor & Destructor
		//@{

		/// \ctor
		IEffectPool( void );

		/// \dtor
		virtual ~IEffectPool( void );

		//@}

		DECL_IOBJECT_INTERFACE( IEffectPool , IObject );

	public:

		/// \name IEffectPool Interface
		//@{

		/*!
			\brief		Get effect pool's master effect.
		*/
		virtual RefPass<IEffect> GetMasterEffect( void ) = 0;

		/*! 
			\brief		Get effect pool interface.
		*/
		virtual IUnknown * GetEffectPoolInterface( void ) = 0;

		//@}
	};

} // namespace xeres
